<template>
  <div class="main">
    <div class="register-form">
      <div class="phone">
        <van-field
          v-model="data.OpenID"
          label="OpenID"
          required
          placeholder="OpenID"
        />
      </div>

      <div style="margin: 20px">
        <van-button class="br-5" block type="info" @click="login()">
          登录
        </van-button>
      </div>
    </div>
  </div>
</template>

<script>
import { idCardLoginVerify } from "@/api/public";
export default {
  components: {},
  data() {
    return {
      data: {
        OpenID: "",
      },
      CompanyCode: "",
    };
  },
  created() {
    this.CompanyCode = this.$route.query.CompanyCode;
  },
  methods: {
    login() {
      this.$store.commit("updateOpenId", this.data.OpenID);
      this.$router.push({
        path: "/loginIDCard",
        query: {
          CompanyCode: this.CompanyCode,
        },
      });
    },
  },
};
</script>

<style lang="less" scoped>
/*.register-form {*/
/*    margin-top: 10px;*/
/*}*/
.phone {
  position: relative;

  .code {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 12px;
  }
}
</style>



